<template>
  <svg class="svg-icon" aria-hidden="true">
    <use :xlink:href="iconName" />
  </svg>
</template>
<script lang="ts">
export default {name: 'SvgIcon'}
</script>
<script lang="ts" setup>
import {defineProps, ref} from 'vue';
interface Props {
  svgName ?:string,
}
const props = defineProps<Props>();
const iconName = ref(`#icon-${props.svgName}`);
</script>

<style lang="scss" scoped>
.svg-icon {
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>